function [ x_new ] = FourPointAvarage_boundary( x,omega )
% Input:
% x = [i-1 i i+1 i+2] (the four adjacency points)
% omega is the tension parameter
%-----------------------------------------------------------------
% Nir Sharon 26-05-12
%-----------------------------------------------------------------

x_new = x(1)*(-3*omega+1/2)+x(2)*(7*omega+1/2)-5*omega*x(3)+x(4)*omega;

end